/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.tnmk.worktime.gui.history.filter;

/**
 *
 * @author tnmkhoi
 */
public class SpendFilter extends GlobFilter {

  public SpendFilter(String strFilter) {
    super(strFilter);
    String wildcard= strFilter;
    if (wildcard.indexOf("*") < 0) {
      wildcard = "*" + wildcard + "*";
    }
    String regex = super.toRegex(wildcard);
    super.setRegex(regex);
  }

}
